# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'freetype'
    version = '2.10.1'
    stype = SourceType.TARBALL
    url = 'savannah://.tar.xz'
    tarball_checksum = '16dbfa488a21fe827dc27eaf708f42f7aa3bb997d745d31a19781628c36ba26f'
    licenses = [{License.FreeType: ['docs/LICENSE.TXT']}, License.GPLv2Plus]
    configure_tpl = "%(config-sh)s --prefix=%(prefix)s --libdir=%(libdir)s --with-harfbuzz=no"
    deps = ['zlib', 'bzip2', 'libpng']
    patches = ['freetype/0001-pngshim-Workaround-buggy-mingw-compiler.patch']

    files_libs = ['libfreetype']
    files_devel = ['lib/pkgconfig/freetype2.pc',
                   'include/freetype2',
                   'share/aclocal/freetype2.m4']
